<template>
  <el-autocomplete
    :fetch-suggestions="testSearch"
  ></el-autocomplete>
</template>

<script>
  export default {
    methods: {
      testSearch (queryString, cb) {
        let res = [
          { 'value': '三全鲜食（北新泾店）', 'address': '长宁区新渔路144号' },
          { 'value': 'Hot honey 首尔炸鸡（仙霞路）', 'address': '上海市长宁区淞虹路661号' }
        ]
        cb(res)
      }
    }
  }
</script>
